<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="com.hz.model.User"%>
<%@page import="com.hz.control.ParamDepartmentManager"%>
<!DOCTYPE html >
<html>
<head>
    <title>东师红烛</title>
    <meta charset="utf-8"/>
    <link rel="shortcut icon" href="../../css/ico/favicon.ico" />
    <link rel="stylesheet" type="text/css" href="../../css/index.css"/>
    <script type="text/javascript" src="../../js/info.js"></script>
    <script type="text/javascript" src="../../js/core.js"></script>
    <script type="text/javascript">
        var popUpWin = 0;
        function PopUpWindow(URLStr, left, top, width, height, newWin, scrollbars) {
            if (typeof (newWin) == "undefined")
                newWin = false;

            if (typeof (left) == "undefined")
                left = 100;

            if (typeof (top) == "undefined")
                top = 0;

            if (typeof (width) == "undefined")
                width = 800;

            if (typeof (height) == "undefined")
                height = 760;

            if (newWin) {
                open(URLStr, '', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=' + scrollbars + ',resizable=yes,copyhistory=yes,width=' + width + ',height=' + height + ',left=' + left + ', top=' + top + ',screenX=' + left + ',screenY=' + top + '');
                return;
            }
            if (typeof (scrollbars) == "undefined") {
                scrollbars = 0;
            }
            if (popUpWin) {
                if (!popUpWin.closed) popUpWin.close();
            }
            popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=' + scrollbars + ',resizable=yes,copyhistory=yes,width=' + width + ',height=' + height + ',left=' + left + ', top=' + top + ',screenX=' + left + ',screenY=' + top + '');
            popUpWin.focus();
        }
</script>
</head>
<%
     request.setCharacterEncoding("utf-8");
   User cu = (User)session.getAttribute("user"); 
   String Picurl = (String) session.getAttribute("picUrl");
	if (Picurl == null) {
		Picurl = cu.getPicPath();
	}
%>
<body>
<header class="globalHeader">
    <div class="mask"></div>
    <div class="header">
        <span class="hide logo"><a href="">logo</a></span>
        <span class="home"><a href=""><img src="../../css/images/home_03.png">主页</a></span>
        <span class="name" ><a href=""><%=cu.getRealname() %></a> | <a href="../login/logout.jsp">退出</a></span>
    </div>
</header>
<div class="banner"></div>
<div class="main">
    <section class="right">
        <div class="img">
            <img src="../../resources/photos/<%=Picurl%>" width="120" height="160"/>
            <p class="nn"><%=cu.getRealname() %> <a href="javascript:void(0);PopUpWindow('../register/uploadimage.jsp?Picurl=<%=Picurl%>',100,100,600,500);">换头像</a></p>
            <p> 年级：<%=cu.getGrade() %></p>
            <p>学院：<%=ParamDepartmentManager.findDepartment(cu.getDepartmentId()).getDepartmentSmallName() %></p>
            <p>角色：<%if(cu.getRole()==0) out.print("普通会员");else out.print("管理员");%></p>
            <p>等级：<%=cu.getVolunteerLev() %>星</p>
            <p><a href="userinfo.jsp" target='infFrame'>个人详细信息&gt;&gt;</a> </p>
        </div>
        <nav class="navigation">
            <ul>
                <li><a id='regBtn' href="javascript:void(0);"><i class="pas"></i>密码修改</a></li>
                <li><a href=""><i class="pin"></i>评价认证</a></li>
                <li><a href="../common/comment/comment_reply.jsp">在线留言</a></li>
                <li><a href="../common/applyAct/ApplyActivities.jsp" target='infFrame'><i class="she"></i>申请活动</a></li>
                <li><a href="../common/activity/activities.jsp" target='infFrame'><i class="can"></i>查看活动</a></li>
                <li><a href=""><i class="zhe"></i>证书打印</a></li>
            </ul>
        </nav>
    </section>
    <section class="left">
        <iframe width=540 height='650' name='infFrame' class='inframe' src='userinfo.jsp'></iframe>
    </section>
</div>
<div id="mask"></div>
<div id="dialog">
    <div class="init">
    <h1>密码修改<span id="cloBtn"></span></h1>
    <iframe width='400' height='300' src='pwd_update.jsp'></iframe>
    </div>
</div>
<span id="toTop">
<em class="sj"></em>
返回顶部
</span>
<footer class="footer">
    <p>蓝旭工作室 开发/维护</p>
    <p>©2012 Nenu</p></footer>
</body>
</html>